	<!DOCTYPE html>
<html>
	<head>
	    <meta charset="utf-8">
	    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
	    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
	    <title>Hello APP</title>
	    <link rel="stylesheet" type="text/css" href="../../../css/index.css"/>
	    <link rel="stylesheet" type="text/css" href="../../../script/lib/swiper.min.css"/>
	</head>
	<style type="text/css">
		.warp{width: 100%;}

		#header{position:fixed;width: 100%;height: 48px;background: #FFFFFF;z-index: 99;left: 0;top: 0;align-items: center;justify-content:space-between;}
		#header .go-back{height: 48px;align-items: center;justify-content: center;padding: 0 15px;flex-shrink: 0;}
		#header .go-back img{width: 24px;height: 24px;}
		#header .sel-type{align-items: center;}
		#header .sel-type .type-one{font-size:16px;color: #999999;margin: 0 20px;line-height: 48px;position:relative;}
		#header .sel-type .type-one.active{color: #333333;}
		#header .fenxiang{padding: 0 15px;height: 48px;align-items: center;justify-content: center;flex-shrink: 0;}
		#header .fenxiang img{width: 21px;height: 21px;}

		/*轮播图和收藏*/
		.banner-warp{width: 100%;padding-bottom: 100%;background: #FFFFFF;box-sizing: border-box;position: relative;}
		.banner-warp .banner-box{width: 100%;background: #F6F6F6;height: 100%;overflow: hidden;position: absolute;top: 0;left: 0;}
		.banner-warp .banner-box .swiper-slide img{width: 100%;display:block;position: absolute;top: 0;left: 0;}
		.banner-warp .banner-box .nav_pointer{bottom: 20px;}
		.banner-warp .banner-box .nav_pointer span{width: 5px;height: 5px;background: #000000;border-radius:50%;}

		/*普通模块*/
		.putong-box{width: 100%;height: 50px;background:#ffffff;align-items: center;color: #FF4661;padding: 0 0 0 15px;box-sizing: border-box;}
		.putong-box .vip-icon{width: 12px;height: 12px;margin-right: 4px;margin-top:2px;}
		.putong-box .pwarp{align-items: center;}
		.putong-box .pwarp .b{font-size: 24px;font-weight: bold;margin-top:2px;color: #FF9502;}
		.putong-box .pwarp .price{font-size: 24px;font-weight: bold;color: #FF9502;line-height: 28px;}
		.putong-box .pwarp .price-y{font-size: 16px;color:#BDBDBD;padding-left: 8px;box-sizing: border-box;text-decoration: line-through;line-height: 28px;}
		.putong-box .pwarp .code{font-size: 24px;color: #FF9502;font-weight: bold;line-height: 28px;}
		.putong-box .code .t{font-size: 21px;color: #FF9502;}
		.putong-box .sc-box{width: 45px;height: 50px;align-items:center;justify-content:center;}
		.putong-box .sc-box img{width: 15px;height: 14px;}

	    /*商品信息*/
	    .shop-info{width: 100%;margin-bottom: 10px;}
	   	.shop-info .shop-box{width: 100%;background: #FFFFFF;padding: 0 15px 20px 15px;box-sizing: border-box;}
		.shop-info .shop-box .shop-name{font-size: 16px;font-weight: 700;color: #333333;}
		.shop-info .shop-box .shop-text{font-size: 13px;color: #8E9194;padding-top: 6px;box-sizing: border-box;}
		.shop-info .info-one{width: 100%;height: 50px;background: #FFFFFF;align-items:center;justify-content: center;padding: 0 15px;box-sizing: border-box;}
		.shop-info .info-one .t1{font-size: 13px;color: #999999;}
		.shop-info .info-one .t2{font-size: 13px;color: #4D4F50;font-weight: 700;padding: 0 15px;box-sizing: border-box;}
		.shop-info .info-one img{width: 13px;height: 13px;}
		.shop-info .info-one .lable-box{align-items: center;padding: 0 15px;box-sizing: border-box;flex-shrink: 0;}
		.shop-info .info-one .lable-box span{position: relative;padding-left: 10px;margin-right: 15px;font-weight: 700;color: #4D4F50;flex-shrink: 0;font-size: 13px;}
		.shop-info .info-one .lable-box span:last-of-type{margin-right: 0;}
		.shop-info .info-one .lable-box span:after{display: block;content:"";width:4px;height: 4px;background:#FF9502;border-radius:50%;position: absolute;left: 0;top:50%;margin-top: -2px;flex-shrink: 0;}
		.shop-info .baozheng-box{width: 100%;align-items:center;justify-content: space-between;height: 37px;padding: 0 15px;box-sizing: border-box;flex-shrink: 0;}
		.shop-info .baozheng-box .baozheng-one{width: auto;font-size: 12px;color: #4E4A4A;align-items: center;}
		.shop-info .baozheng-box .baozheng-one span{display: block;padding-left: 4px;box-sizing: border-box;}
		.shop-info .baozheng-box .baozheng-one img{width: 16px;height: 16px;}

	    /*评价信息*/
	    .pinjia-info{width: 100%;background: #FFFFFF;margin-bottom: 10px;}
	    .pinjia-info .top-box{height: 50px;align-items:center;justify-content: center;padding: 0 15px;box-sizing: border-box;font-size: 14px;color: #4D4F50;}
	    .pinjia-info .top-box .t2{text-align: right;padding-right: 5px;box-sizing: border-box;}
	    .pinjia-info .top-box .t2 span{color: #FF9502;}
	    .pinjia-info .top-box img{width: 13px;height: 13px;}
	    .pinjia-info .pinjia-box{width: 100%;padding: 15px 0 ;box-sizing: border-box;overflow-x: auto;}
	    .pinjia-info .pinjia-box::-webkit-scrollbar{display: none;}
	    .pinjia-info .pinjia-box .pinjia-one{width: 245px;height: 245px;padding: 15px;box-sizing: border-box;flex-shrink: 0;margin-left: 15px;}
		.pinjia-info .pinjia-box .pinjia-one .user-box{width: 100%;align-items: center;}
		.pinjia-info .pinjia-box .pinjia-one .user-box .head{width: 38px;height: 38px;border-radius:50%;overflow: hidden;}
		.pinjia-info .pinjia-box .pinjia-one .user-box .name{padding: 0 5px;box-sizing: border-box;}
		.pinjia-info .pinjia-box .pinjia-one .user-box .pin-xin{align-items: center;}
		.pinjia-info .pinjia-box .pinjia-one .user-box .pin-xin img{width: 13px;height: 13px;margin-left: 2px;display: block;}
		.pinjia-info .pinjia-box .pinjia-one .center-box{width: 100%;font-size: 12px;color: #8E9194;padding: 10px 0;box-sizing: border-box;line-height: 20px;}
		.pinjia-info .pinjia-box .pinjia-one .center-box .guige{text-align: right;}
		.pinjia-info .pinjia-box .pinjia-one .text-box{font-size: 13px;color: #333333;height: 54px;white-space:normal; word-break:break-all;}
		.pinjia-info .pinjia-box .pinjia-one .img-box{width: 100%;height: 65px;margin-top: 10px;box-sizing: border-box;}
		.pinjia-info .pinjia-box .pinjia-one .img-box .img-one{width: 65px;height: 65px;overflow: hidden;margin-right: 10px;}
		.pinjia-info .pinjia-box .pinjia-one .img-box .img-one:last-of-type{margin-right: 0;}
		.pinjia-info .pinjia-box .no-pinjia{text-align: center;line-height: 50px;width: 100%;}
		.noPinjia{width: 100%;height: 60px;text-align: center;line-height: 60px;color: #cccccc;}
		/*商家信息*/
		.shangjia-info{width: 100%;background: #FFFFFF;padding: 15px;box-sizing: border-box;align-items: center;margin-bottom: 10px;}
		.shangjia-info .img-box{width: 40px;height: 40px;align-items: center;justify-content: center;overflow:hidden;}
		.shangjia-info .img-box img{width: 100%;display:block;}
		.shangjia-info .name{font-size: 15px;color: #333333;padding-left:10px;box-sizing: border-box;}
		.shangjia-info .text{font-size: 12px;color: #FF9502;padding-right: 5px;box-sizing: border-box;}
		.shangjia-info .goto{width: 10px;height: 10px;}

		/*推荐商品*/
		.module-diy{width: 100%;background: #FFFFFF;padding: 20px 0;box-sizing: border-box;margin-bottom: 10px}
		.module-diy .title{width: 100%;height: 50px;padding: 0 15px;box-sizing: border-box;align-items: center;line-height: 50px;}
		.module-diy .title .t1{font-size: 16px;color: #4D4F50;height: 100%;font-weight: bold;}
		.module-diy .shop-box{width: 100%;overflow-x: auto;align-items: center;}
		.module-diy .shop-box::-webkit-scrollbar{display: none;}
		.module-diy .shop-box .shop-one{width: 126px;margin-left: 15px;}
		.module-diy .shop-box .shop-one .img-box{width: 126px;height: 126px;overflow: hidden;}
		.module-diy .shop-box .shop-one .img-box img{width: 100%;}
		.module-diy .shop-box .shop-one .bot-box{width: 100%;padding: 12px 0;box-sizing: border-box;}
		.module-diy .shop-box .shop-one .bot-box .name{font-size: 14px;color: #333333;height: 36px;line-height: 18px;}
		.module-diy .shop-box .shop-one .bot-box .price{width: 100%;align-items: center;box-sizing: border-box;line-height: 24px;padding-top: 6px;}
		.module-diy .shop-box .shop-one .bot-box .price .p1{font-size: 14px;color: #FF9502;font-weight: 700;padding-right: 2px;}
		.module-diy .shop-box .shop-one .bot-box .price .p2{font-size: 14px;color: #FF9502;font-weight: 700;}

		/*商品详情*/
		.fuwenben-box{width: 100%;background: #FFFFFF;margin-bottom:10px;}
		.fuwenben-box .title{width: 100%;height: 50px;background: #FFFFFF;align-items: center;justify-content: center;}
		.fuwenben-box .title .text{display: inline-block;color: #4D4F50;font-size: 16px;position: relative;font-weight: bold;}
		.fuwenben-box .title .text:after{display: block;width: 8px;height: 8px;border-radius:50%;background:#D8D8D8;content:"";position: absolute;top: 50%;margin-top: -4px;left: -20px;}
		.fuwenben-box .title .text:before{display: block;width: 8px;height: 8px;border-radius:50%;background:#D8D8D8;content:"";position: absolute;top: 50%;margin-top: -4px;right: -20px;}
		.fuwenben-box .fuwenben{min-height: 200px;overflow: hidden; line-height: 20px;white-space:normal; word-break:break-all;}
		.fuwenben-box .fuwenben img{display: block;width: 100%;}

		/*底部按钮*/
		.bot-btn{width: 100%;height: 60px;background: #FFFFFF;position:fixed;bottom: 0;left: 0;z-index: 99;}
		.bot-btn .btn-box{width: 100%;height: 100%;align-items: center;padding: 10px 10px 10px 0;box-sizing: border-box;}
		.bot-btn .btn-box .nav-box{align-items: center;justify-content: center;flex-shrink: 0;padding: 0 5px;box-sizing: border-box;}
		.bot-btn .btn-box .nav-box .nav-one{width: 45px;align-items: center;justify-content: center;flex-direction: column;flex-shrink: 0;}
		.bot-btn .btn-box .nav-box .nav-one .img-box{width: 20px;height: 20px;}
		.bot-btn .btn-box .nav-box .nav-one .img-box img{width: 100%;height: 100%;}
		.bot-btn .btn-box .nav-box .nav-one .text{font-size: 10px;color: #666666;margin-top: 2px;box-sizing: border-box;}
		.bot-btn .btn-box .right-box2{height: 100%;}
		.bot-btn .btn-box .right-box2 .btn{border-radius:20px;color: #FFFFFF;background: #FF9502;text-align: center;line-height:40px;font-size: 14px;}
		.bot-btn .btn-box .right-box2 .btn.s1{background: #ffffff;color: #FF9502;}
		.bot-btn .btn-box .right-box2 .btn.s1::before{border: 1px solid #FF9502;border-radius:60px;}
		.bot-btn .btn-box .right-box2 .btn:nth-child(1){margin-right: 10px;}
		.tapcss{background: #f5f5f5}

	</style>
	<body>
		<div id="vue" class="warp" style="display:none;" v-if="Pdata && Pdata.id">

			<div id="header" class="flex">
				<div class="go-back flex" tapmode="tapcss" onclick="backMenu(this);"><img src="../../../image/main/back.png"/></div>
				<div class="sel-type flex">
					<div class="type-one item_sp active" data-type="sp" tapmode onclick="gothis(this)">商品</div>
					<div class="type-one item_pj" data-type="pj" tapmode onclick="gothis(this)">评价</div>
					<div class="type-one item_xq" data-type="xq" tapmode onclick="gothis(this)">详情</div>
				</div>
				<div class="fenxiang flex" :data-title="Pdata.title" :data-img="Pdata.fximage" :data-id="Pdata.id" data-type="shop" tapmode onclick="shareShop(this)"><img src="../../../image/main0/fenxiang.png"/></div>
			</div>
			<div id="zhanwei" style="width: 100%;"></div>

			<!--轮播图和收藏-->
	    	<div class="banner-warp">
	    		<!--轮播图-->
				<div class="banner-box swiper-container">
					<div class="banner swiper-wrapper" v-if="Pdata.images" >
						<div class="swiper-slide" v-for="(item,key) in Pdata.images.data" >
							<img class="lazy" v-if="item.type=='image'" :src="item.image">
							<video :src="item.url" controls="controls" width="100%" height="100%" v-if="item.type=='video'" :poster="item.image"></video>
						</div>
					</div>
					<div class="nav_pointer swiper-pagination"></div>
				</div>
			</div>

			<!--普通模块-->
			<div class="putong-box flex tit-height">
				<img class="vip-icon" v-if="Pdata.isvip == 1" src="../../../image/main0/lable_v.png"/>

				<div class="pwarp flex flex1" v-if="Pdata.goodstype == 0">
					<div class="b">¥</div>
					<div class="price" v-text="Pdata.price"></div>
					<div class="price-y flex1" v-if="Pdata.goodstype == 0 && Pdata.price_del">¥<i v-text="Pdata.price_del"></i></div>
				</div>
				<div class="pwarp flex flex1" v-if="Pdata.goodstype == 1">
					<div class="b">¥</div>
					<div class="price" v-text="Pdata.price"></div>
					<div class="code flex1" v-if="Pdata.goodstype == 1 && Pdata.unscore">+<i v-text="Pdata.unscore"></i><i class="t">积分</i></div>
				</div>
				<div class="pwarp flex flex1" v-if="Pdata.goodstype == 2 && Pdata.pricetype == 'scoreandrmb'">
					<div class="b">¥</div>
					<div class="price" v-text="Pdata.price"></div>
					<div class="code flex1">+<i v-text="Pdata.unscore"></i><i class="t">积分</i></div>
				</div>
				<div class="pwarp flex flex1" v-if="Pdata.goodstype == 2 && Pdata.pricetype == 'score'">
					<div class="code flex1"><i v-text="Pdata.unscore"></i><i class="t">积分</i></div>
				</div>
				<div class="pwarp flex flex1" v-if="Pdata.goodstype == 2 && Pdata.pricetype == 'rmb'">
					<div class="b" v-if="Pdata.price">¥</div>
					<div class="price" v-text="Pdata.price"></div>
				</div>

				<!--收藏商品-->
				<div class="sc-box flex" :data-id="Pdata.id" tapmode onclick="shoucangShop(this)">
					<img v-if="Pdata.isshoucang == 0" src="../../../image/main0/sc0.png"/>
					<img v-if="Pdata.isshoucang == 1" src="../../../image/main0/sc1.png"/>
				</div>
			</div>

			<!--商品信息-->
			<div class="shop-info">
				<div class="shop-box">
					<div class="shop-name han_2" v-text="Pdata.title"></div>
					<div class="shop-text han_1" v-text="Pdata.tit"></div>
				</div>
				<div class="baozheng-box flex">
					<div class="baozheng-one flex">
						<img src="../../../image/main0/show_bz_1.png"/>
						<span>正品保证</span>
					</div>
					<div class="baozheng-one flex">
						<img src="../../../image/main0/show_bz_2.png"/>
						<span>海外直采</span>
					</div>
					<div class="baozheng-one flex">
						<img src="../../../image/main0/show_bz_3.png"/>
						<span>保税仓发货</span>
					</div>
					<div class="baozheng-one flex">
						<img src="../../../image/main0/show_bz_4.png"/>
						<span>售后无忧</span>
					</div>
				</div>
				<div class="info-one flex border-top" :data-type="Pdata.goodstype == 0 ? 'shop':'jifen'" tapmode onclick="openSkuSelect(this);" :data-id="Pdata.id" v-if="Pdata.isguige == 2">
					<div class="t1">规格</div>
					<div class="t2 flex1" id="guige-box">请选择规格</div>
					<img src="../../../image/main0/show_goto.png"/>
				</div>
				<div class="info-one flex border-top" v-if="Pdata.yunfei_type == 'none'">
					<div class="t1">运费</div>
					<div class="t2 flex1">包邮</div>
				</div>
				<div class="info-one flex border-top" v-if="Pdata.yunfei_type == 'val'">
					<div class="t1">运费</div>
					<div class="t2 flex1"><i v-text="Pdata.yunfei"></i>元</div>
				</div>
				<div class="info-one flex border-top" tapmode onclick="open_shuoming(this);" v-if="Pdata.shuoming_data">
					<div class="t1">说明</div>
					<div class="lable-box flex1 han_1 flex"><span v-for="(item,key) in Pdata.shuoming_data.title" v-text="item"></span></div>
					<img src="../../../image/main0/show_goto.png"/>
				</div>
			</div>

			<!--评论信息-->
			<div class="pinjia-info" >
				<div class="top-box flex border-bottom" tapdome  onclick="morePinjia(this)" data-title="评价" :data-id="Pdata.sid">
					<div class="t1" v-text="'用户评价('+ Pdata.pingjia_data.count +')'"></div>
					<div class="t2 flex1"><span><i v-text="Pdata.pingjia_data.bili"></i>%</span>好评率</div>
					<img src="../../../image/main0/show_goto.png"/>
				</div>
				<div class="noPinjia" v-if="Pdata.pingjia_data.list.length <= 0">暂无评价内容</div>
				<div class="pinjia-box flex" v-if="Pdata.pingjia_data.list.length > 0">
					<div class="pinjia-one border-all" v-for="(item,key) in Pdata.pingjia_data.list">
						<div class="user-box flex">
							<div class="head bgpic" :style="{backgroundImage:'url('+ item.avatar +')'}"></div>
							<div class="name flex1 han_1" v-text="item.nickname"></div>
							<div class="pin-xin flex">
								<img v-for="count in item.lv" src="../../../image/main0/px_1.png"/>
								<img v-for="count in 5-item.lv" src="../../../image/main0/px_0.png"/>
							</div>
						</div>
						<div class="center-box flex">
							<div class="time" v-text="item.addtime"></div>
							<div class="guige han_1 flex1" v-text="item.goodskey"></div>
						</div>
						<div class="text-box han_3" v-text="item.content ? item.content : '没有评价内容...'"></div>
						<div class="img-box flex">
							<div class="img-one border-all bgpic" v-for="(i,k) in item.images" v-if="k<3" :data-path="i" :data-index="k" :style="{backgroundImage:'url('+ i +')'}" tapmode onclick="openBig(this)"></div>
						</div>
					</div>
				</div>
			</div>

			<!--商家信息-->
			<div class="shangjia-info flex" v-if="Pdata.pinpai_data" :data-id="Pdata.pinpai_data.id" :data-title="Pdata.pinpai_data.title" :data-img="Pdata.pinpai_data.logo" tapmode onclick="open_pingpai(this)">
				<div class="img-box border-all flex"><img :src="Pdata.pinpai_data.logo"/></div>
				<div class="name flex1" v-text="Pdata.pinpai_data.title"></div>
				<div class="text">查看品牌详情</div>
				<img class="goto" src="../../../image/main0/show_goto1.png"/>
			</div>

			<!--推荐商品-->
			<div class="module-diy" v-if="Pdata.tuijian_goods.length > 0">
				<div class="title flex">
					<div class="t1">推荐商品</div>
				</div>
				<div class="shop-box flex">
					<div class="shop-one" v-for="(item,key) in Pdata.tuijian_goods" :data-id="item.sid" tapmode onclick="open_goods(this)" >
						<div class="img-box"><img :src="item.image"/></div>
						<div class="bot-box flex1">
							<div class="name han_2" v-text="item.title"></div>
							<div class="price flex" v-if="item.goodstype == 0">
								<span class="p1" v-text="'¥' + item.price"></span>
							</div>
							<div class="price flex" v-if="item.goodstype == 1">
								<span class="p1" v-text="'¥' + item.price"></span>
								<span class="p2" v-if="item.unscore" v-text="'+' + item.unscore + '积分'"></span>
							</div>
							<div class="price flex" v-if="item.goodstype == 2">
								<span class="p1" v-if="item.pricetype == 'rmb' || item.pricetype == 'scoreandrmb'" v-text="'¥' + item.price"></span>
								<span class="p2" v-if="item.pricetype == 'scoreandrmb'" v-text="'+' + item.unscore + '积分'"></span>
								<span class="p2" v-if="item.pricetype == 'score'" v-text="item.unscore + '积分'"></span>
							</div>
						</div>
					</div>
				</div>
			</div>

			<!--商品详情-->
			<div class="fuwenben-box">
				<div class="title flex">
					<div class="text">商品详情</div>
				</div>
				<div class="fuwenben" v-html="Pdata.content"></div>
			</div>

			<!--底部按钮-->
			<div style="width: 100%;height: 80px;"></div>
			<div class="bot-btn" style="display:none;" :style="{ display:(Pdata ? '':'none')}" id="app-footer" >
				<div class="btn-box flex" v-if="Pdata.goodstype >= 0">
					<!--左侧三个小按钮-->
					<div class="nav-box flex">
						<div class="nav-one flex flex1" tapmode onclick="goIndex()">
							<div class="img-box"><img src="../../../image/main0/show_nav1.png"/></div>
							<div class="text">首页</div>
						</div>
						<div class="nav-one flex flex1" tapmode onclick="gokefu();">
							<div class="img-box"><img src="../../../image/main0/show_nav2.png"/></div>
							<div class="text">客服</div>
						</div>
						<div class="nav-one flex flex1" tapmode onclick="goCart();" v-if="Pdata.goodstype == 0">
							<div class="img-box"><img src="../../../image/main0/show_nav3.png"/></div>
							<div class="text">购物车</div>
						</div>
					</div>
					<!--加入购物车-->
					<div class="right-box2 flex flex1" style="display:none;" :style="{ display:(Pdata ? '':'none')}" v-if="Pdata.goodstype == 0">
						<div class="btn s1 flex1 border-all" :data-id="Pdata.id" data-type="shop" tapmode onClick="openSkuSelect(this);">加入购物车</div>
						<div class="btn flex1" :data-id="Pdata.id" data-type="shop" tapmode onClick="openSkuSelect(this);">立即购买</div>
					</div>
					<div class="right-box2 flex flex1" style="display:none;" :style="{ display:(Pdata ? '':'none')}" v-if="Pdata.goodstype == 1">
						<div class="btn flex1" :data-id="Pdata.id" data-type="jifen" tapmode onClick="openSkuSelect(this);">立即购买</div>
					</div>
					<div class="right-box2 flex flex1" style="display:none;" :style="{ display:(Pdata ? '':'none')}" v-if="Pdata.goodstype == 2">
						<div class="btn flex1" :data-id="Pdata.id" data-type="xinren" tapmode onClick="openSkuSelect(this);">立即购买</div>
					</div>
				</div>
			</div>

		</div>
	</body>
</html>
<script type="text/javascript" src="../../../script/base.min.js" id="loadjs" data-js="L/swiper.min,L/lazyload,L/h-tool,L/lyvideo.js"></script>
<script type="text/javascript">
	define(function (require, exports, module) {
		$('#vue').show();
		pageParam = api.pageParam;
		var _top = lanYun.setHeader('header');
		$('#zhanwei').height(_top);
		lanYun.setFooter('app-footer');

		var _cartData = { buynum : 1 };
		var spH = 0;
		var pjH = 0;
		var shuoming_data = [];
		var dataInfo={};

		//获取数据
		//console.log(pageParam.id);
		_page.getData = function(loading) {
			//console.log(pageParam.id);
			lanYun.getVueData({url:'storesGoods/show', get:{id:pageParam.id}, loading:loading}, function(ret) {
				//console.log(JSON.stringify(ret));
				//banner初始化
				dataInfo = ret.data
				if(ret.errcode == 0){
					if(ret.data.shuoming_data){
						shuoming_data = ret.data.shuoming_data.list;
					}
					if(ret.data.isguige == 2){
						_cartData.key = ret.data.skudata.defkey;
					}
					// autoplay:{// 自动滑动
					//   delay: 3000, //1秒切换一次
					//   disableOnInteraction: false
					// },
					if(lanYun.swiper1) lanYun.swiper1.destroy();
					lanYun.swiper1 = new Swiper('.swiper-container', {
						pagination: {el: '.swiper-pagination'},
						observer:true,
						observeParents: true,
						paginationClickable: true,
		                on: {
		                    touchStart:function(event){},
		                    slideChangeTransitionEnd:function(swiper) {
		                        var _pre_slide = this.slides[this.previousIndex];
		                        var _act_slide = this.slides[this.activeIndex];
		                    }
		                }
					});
				}else {
					lanYun.toast(ret.msg);
				}
			});
		};

		//创建vue
		lanYun.newVue('#vue',{
			Pdata:{
				pingjia_data:{
					count:0,
					bili:0,
					list:[]
				},
				shuoming_data:{
					title:[],
					list:[]
				},
				tuijian_goods:[],
				tuanData:{
					data:[]
				}
			},
		},function(e) {
			_page.getData(1);
		});

		// 点击图片放大
		openBig = function(tis){
			var UIPhotoViewer = api.require('UIPhotoViewer');
			var images = [];
			var data = tis.dataset;
			$(tis).parent().find('.bgpic').each(function(){
				var dst = this.dataset;
				images.push(dst.path);
			});
			UIPhotoViewer.open({
				images: images,
				activeIndex: data.index,
				placeholderImg: 'widget://res/img/apicloud.png',
				bgColor: '#000',
				gestureClose: true
			}, function(ret, err) {
				if (ret.eventType == 'click') {
					UIPhotoViewer.close();
				}
			});
		};

		//刷新页面
		onShow = function () {
			var reshpage = lanYun.getStorage('reshpage');
			if(reshpage){
				lanYun.rmStorage('reshpage');
				lanYun.ajaxPageSta = 0; lanYun.page = 1;
				_page.getData(2);
			}
		};

		//页面关闭方法
		backMenu = function (tis){
			api.closeWin();
		}

		//打开说明页面
		open_shuoming = function (tis) {
	        var dst = tis.dataset;
	        lanYun.openFrame('dialog/shuoming.html',{data:shuoming_data}, function() {});
	    }

		//打开规格
        openSkuSelect = function(tis) {
            var dst = tis.dataset;
	        var sdata = lanYun.vue.Pdata;
			//是否是参加别人的团
			// if(dst.type == 'tuanshop' && dst.tid){
			// 	dst.tid = dst.tid;
			// }
			//是否是拼团原价购
			// if(dst.goutype == 1){
			// 	dst.goutype = 1;
			// }
			if(dst.type == 'jifen'){
				dst.jifen = lanYun.vue.Pdata.unscore;
			}
			if(dst.type == 'xinren'){
				dst.jifen = lanYun.vue.Pdata.unscore;
				dst.xtype = lanYun.vue.Pdata.pricetype;
			}

			dst.shoptype = dst.type;
			dst.sid = lanYun.vue.Pdata.id;
			//上次选中的参数
			dst.buynum = _cartData.buynum;
			dst.key = _cartData.key || '';
			dst.frameName = api.frameName;
			//console.log(api.frameName);
	        lanYun.openFrame('goods/sku/sku' , dst ,function (data) {
				//console.log(JSON.stringify(data));
				if(!data.key){
	                lanYun.toast('请选择商品规格');
	            }
				$("#guige-box").html("已选规格:" + data.key);
	            _cartData = data;
	            if(data.cktype=='addcart') {
	                addCart();
	            }else if(data.cktype=='buy'){
	                goBuy();
	            }else if(data.cktype=='jifen'){
					_cartData.shoptype = 'jifen'
	                goBuy();
	            }else if(data.cktype=='xinren'){
					_cartData.shoptype = 'xinren'
	                goBuy();
	            }else {
	            	return;
	            }
	        });
        };

		//加入购物车
	    addCart = function() {
	        lanYun.post('storesCart/add', _cartData ,function (ret) {
	            lanYun.toast(ret.msg, 'middle');
	            lanYun.event('updatecart');
	        },2);
	    };

		//立即购买
	    goBuy = function() {
	        _cartData.action = 'buy';
	        lanYun.openWin('ordert', {
	            title : '确认订单',
	            frameParam : _cartData
	        });
	    };

		//参加拼团
		goTuan = function() {
			lanYun.openWin('ordert/ordert_tuan.html', {
				title : '填写订单',
				frameParam : _cartData
			});
		};

		//收藏商品
		shoucangShop = function(tis){
			var dst = tis.dataset;
			lanYun.get('User/addsc?sid=' + dst.id ,function (ret){
				lanYun.toast(ret.msg);
				lanYun.vue.Pdata.isshoucang = !lanYun.vue.Pdata.isshoucang;
			},2)
		}

		// 打开评价
		morePinjia = function (tis){
			var dst = tis.dataset;
			lanYun.openWin('main3/more_pingjia.html', {
	            win:'win',
                title:dst.title,
	            frameParam : {id:dst.id},
	        });
		}

		//分享商品
		shareShop = function(tis){
			if(!lanYun.isLogin()){
                lanYun.openLogin();
                return;
            }
			var dst = tis.dataset;
			var name = lanYun.randStr(10) + '.png';
			//console.log(dst.img);
			api.download({
			    url:dst.img,
			    savePath: api.fsDir + '/compress/'+name+'',
			    report: true,
			    allowResume: true
			}, function(ret, err) {
			    if (ret.state == 1) {
					lanYun.openFrame('dialog/share.html' , {type:'shop',id:dst.id,ani:0,img:api.fsDir + '/compress/'+ name,title:dst.title} ,function(data) {});
			    }
			});
		}

		//打开品牌
		open_pingpai = function (tis) {
	        var dst = tis.dataset;
	        lanYun.openWin('main0/list_pinpai.html', {
	            title : dst.title,
	            frameParam : dst,
	       });
	    }

		//打开商品详情
        open_goods = function (tis) {
            var dst = tis.dataset;
            lanYun.openWin('goods/show', {
                win:'none',
                frameParam : dst,
            });
        }

		// 暂时不能购买
		noBuy = function (tis) {
			var dst = tis.dataset;
			lanYun.toast(dst.msg);
			return;
		}

		// 返回首页
	    goIndex = function(){
			lanYun.event("toIndex");
	    }

		// 打开购物车
	    goCart = function(){
			if(!lanYun.isLogin()){
                lanYun.openLogin();
                return;
            }
			lanYun.event("toCart");
	    }

		// 头部跳转
	    gothis = function(tis){
			var dst = tis.dataset;
			$('.type-one').removeClass('active');
	        if(dst.type == 'pj'){
	            var h = $('.pinjia-info').offset().top-_top;
				$('.item_pj').addClass('active');
	            $("html").scrollTop(h);
	        }else if(dst.type == 'xq'){
	            var h = $('.fuwenben-box').offset().top-_top;
				$('.item_xq').addClass('active');
	            $("html").scrollTop(h);
	        }else{
				$('.item_sp').addClass('active');
	            $("html").scrollTop(0);
	        }
			lanYun.panduan = 1;
			setTimeout(function(){
				lanYun.panduan = 0;
			},1000)
	    }

		//页面滚动
	    new auiScroll({
	        listen : true,
	        distance : 100
	    }, function(ret) {
			if(lanYun.panduan == 1) return true;
	        spH = $('.pinjia-info').offset().top-_top;
	        pjH = $('.fuwenben-box').offset().top-_top;

	        if(ret.scrollTop < spH){
	    		$('.item_sp').addClass('active');
	    	}else{
	    		$('.item_sp').removeClass('active');
	    	}
	        if(  ret.scrollTop > spH){
	            $('.item_pj').addClass('active');
	    		$('.item_sp').removeClass('active');
	    	}else{
	    		$('.item_pj').removeClass('active');
	    	}
	    	if(ret.scrollTop > pjH){
	    		$('.item_xq').addClass('active');
	    		$('.item_pj').removeClass('active');
	    	}else{
	    		$('.item_xq').removeClass('active');
	    	}

	    });

		//打开新人专享规格
		open_xinguze = function () {
	        lanYun.openWin('main3/fuwenben.html', {
	            win:'win',
	           	title:'新人专享规格说明',
	            frameParam : {type:'Page/xinren'}
	       });
	    }

		//去客服
		gokefu = function (){
			var udata = lanYun.getUdata();
			var avatar = lanYun.wurl+'static/logo.png';
			if(udata){
				avatar = udata.avatar;
			}
			var qiyuSdk = api.require('qiyuSdk');
			var params = {
			    source:{
			        sourceTitle:'天宏沐晨商城APP',
			        sourceUrl:'',
			        sourceCustomInfo:'来自商品详情'
			    },
			    commodityInfo:{
			        commodityInfoTitle:dataInfo.title,
			        commodityInfoDesc:dataInfo.tit,
			        pictureUrl:dataInfo.image,
			        commodityInfoUrl:dataInfo.image, //链接地址
			        note:'￥'+dataInfo.price,
			        show:true
			    },
			    sessionTitle:'天宏沐晨商城客服',
			    groupId:0,
			    staffId:0,
			}
			qiyuSdk.openServiceWindow(params);
			var prmUI = {
				showHeadImage:true,
				customerHeadImage:avatar //头像地址
			}
			qiyuSdk.setCustomUIConfig(prmUI);
		}

	});

</script>
